package respostas;

import comportamento.funcaoativacao.IFuncaoAtivacao;

import concreto.funcaoativacao.FuncaoAtivacaoDegrau;
import concreto.funcaoativacao.FuncaoAtivacaoGaussiana;
import concreto.funcaoativacao.FuncaoAtivacaoLinear;
import concreto.funcaoativacao.FuncaoAtivacaoSignada;

public class AC02 {

    /**
     * @param args
     */
    public static void main(String[] args) {

	double uk1 = 2;
	double lm1 = 1;

	double uk2 = 3;
	double lm2 = 4;
	
	double uk3 = 30;
	double lm3 = 10;
	
	double uk4 = 0.5;
	double lm4 = 1;
	
	IFuncaoAtivacao f = new FuncaoAtivacaoLinear();
	System.out.println("Linear: uk = " + uk1 + ", lm = " + lm1 + ", y = " +  f.ativarNeuronio(uk1, lm1) + "\n");
	
	f = new FuncaoAtivacaoDegrau();
	System.out.println("Degrau: uk = " + uk2 + ", lm = " + lm2 + ", y = " +  f.ativarNeuronio(uk2, lm2) + "\n");
	
	f = new FuncaoAtivacaoGaussiana();
	System.out.println("Gaussiana: uk = " + uk3 + ", lm = " + lm3 + ", y = " +  f.ativarNeuronio(uk3, lm3) + "\n");

	f = new FuncaoAtivacaoSignada();
	System.out.println("Signada: uk = " + uk4 + ", lm = " + lm4 + ", y = " +  f.ativarNeuronio(uk4, lm4) + "\n");
	
    }

}
